﻿@model AidBrella.ViewModels.ProjectViewModel


  <script  type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"> </script>
  <script src="@Url.Content("~/Scripts/js/map.js")" type="text/javascript"></script>
   <script src="@Url.Content("~/Scripts/js/project.js")" type="text/javascript"></script>

  

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
      
     <div id="create-project"> 

     <table>
         <thead>
         </thead>
         <tbody>
            <tr>
                <td><label>Name: </label></td>
                <td>@Html.EditorFor(model => model.Name)</td>
                <td>@Html.ValidationMessageFor(model => model.Name)</td>
            </tr>

             <tr>
                <td><label>Project Sector: </label></td>
                <td>@Html.DropDownListFor(model => model.ProjectSectorSelection, Model.ProjectSectorSelection)</td>              
            </tr>

            <tr>
                <td><label>Description: </label></td>
                <td>@Html.TextAreaFor(model => model.Description)</td>
                <td>@Html.ValidationMessageFor(model => model.Description)</td>
            </tr>

            <tr>
                <td><label>Date started: </label></td>
                <td>@Html.EditorFor(model => model.StartDate)</td>
                <td>@Html.ValidationMessageFor(model => model.StartDate)</td>
            </tr>


              <tr>
            <td><label>Date ending: </label></td>
            <td>@Html.EditorFor(model => model.EndDate)</td>
            <td>@Html.ValidationMessageFor(model => model.EndDate)</td>
            </tr>

        </tbody>
     </table>
    
     <div class="row">
         <div class="cols2">
            <input type="submit" value="Create" />
         </div>
        <div class="cols2">
           @Html.ActionLink("Back to List", "Index")
         </div>        
       
    </div> 

   </div>   
     <div id="project-map-holder">
        @Html.HiddenFor(model => model.Location)        
        @Html.Partial("MiniMap")
    </div>    
}

